package com.hanamaki.day01;

import java.util.Scanner;

public class day02 {  // ctrl + h
    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入该班级的学生总数");
//        int a=scanner.nextInt();
//        int c=1;
//        int d=0;
//        while (c<=a){
//            System.out.println("请输入学号"+c+"的成绩:");
//            int b=scanner.nextInt();
//          c++;
//           d+=b;
//        }
//        System.out.println("该班学员的平均成绩为"+(d/a));
//    }
//
        double a;
        double b = 0;
        int count = 1;
        do {
            a = b * 9 / 0.5 + 32;
            System.out.println("华氏温度度：" + a + ",摄氏温度" + b);
            b += 20;
            count++;
        } while (b <= 250 && count <= 10);
    }
}
